package com.project.class4_7;

public class ReadWriterRun {
    public static void main(String[] args) {
        RWTest rw = new RWTest();
        new Thread(){
            public void run(){
                rw.write();
            }
        }.start();
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        new Thread(){
            public void run(){
                rw.read2();
            }
        }.start();
        new Thread(){
            public void run(){
                rw.read1();
            }
        }.start();
    }
}
